﻿<UserControl x:Class="BeeCoders.Tools.ControlCanvas.Controls.ControlPropertyHandleView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:vm="clr-namespace:BeeCoders.Tools.ControlCanvas"
             mc:Ignorable="d" 
             d:DataContext="{d:DesignInstance vm:ControlViewModelDemo, IsDesignTimeCreatable=True}"
             d:DesignHeight="32" d:DesignWidth="16"
             IsTabStop="False">

    <UserControl.Resources>
        <BooleanToVisibilityConverter x:Key="BoolToVisible"></BooleanToVisibilityConverter>
    </UserControl.Resources>

	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="*" />
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>
		<ToggleButton Name="PropButton" Width="16" Height="16" HorizontalAlignment="Left" VerticalAlignment="Top"
						Visibility="{Binding Path=IsInDesign, Converter={StaticResource BoolToVisible}}"
						IsHitTestVisible="{Binding Path=IsInDesign}" Opacity="0.5"
						Checked="PropButtonChecked"
						Unchecked="PropButtonUnchecked">
			<Path x:Name="Path" 
					Width="10" Height="10" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF000000" Fill="#FF871717" Data="F1 M 46.2337,26.6105L 0.5,0.499992L 0.754425,53.1618L 46.2337,26.6105 Z "/>

		</ToggleButton>
		<TextBlock Grid.Row="1" Text="{Binding TabOrder}" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="8"></TextBlock>
	</Grid>



</UserControl>
